aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/invoice/[amount].js
diff options
context:
space:
mode:
authorsecondl1ght <[email protected]>2022-07-30 13:01:35 -0600
committersecondl1ght <[email protected]>2022-07-30 13:01:35 -0600
commit7b2050102eb01fe3a694a60b0111262eacef735f (patch)
tree0d0f4070fd763885ee605cdac9baf1d491bac3a6 /src/routes/invoice/[amount].js
parente599c7dec8b79903b769f957231c67e16dde9bfc (diff)
parentef3bd2f6687d0bfca1b85cc3f4be47c8e628c748 (diff)
downloadcoinos-ui-7b2050102eb01fe3a694a60b0111262eacef735f.tar.gz
coinos-ui-7b2050102eb01fe3a694a60b0111262eacef735f.zip
Merge branch 'master' of github.com:coinos/coinos-ui-v2
Diffstat (limited to 'src/routes/invoice/[amount].js')
-rw-r--r--src/routes/invoice/[amount].js12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/routes/invoice/[amount].js b/src/routes/invoice/[amount].js
deleted file mode 100644
index 9e9678a6..00000000
--- a/src/routes/invoice/[amount].js
+++ /dev/null
@@ -1,12 +0,0 @@
-import { post } from '$lib/utils';
-
-const username = 'bob',
- network = 'lightning';
-
-export async function GET({ params }) {
- let { amount } = params;
- let { text } = await post('/lightning/invoice', { amount });
- await post('/invoice', { invoice: { text, network }, user: { username } });
-
- return { body: { amount, text } };
-}